import request from "@/utils/request";
export function selectStatementList(data) {
  return request({
    url: "/smkapi/statement/selectStatementList",
    method: "post",
    data
  });
}
export function findStatementInfo(data) {
  return request({
    url: "/smkapi/statement/findStatementInfo",
    method: "post",
    data
  });
}

export function platConfirm(data) {
  return request({
    url: "/smkapi/statement/platConfirm",
    method: "post",
    data
  });
}
export function supplierConfirm(data) {
  return request({
    url: "/smkapi/statement/supplierConfirm",
    method: "post",
    data
  });
}
export function confirmStatement(data) {
  return request({
    url: "/smkapi/statement/confirmStatement",
    method: "post",
    data
  });
}
export function caiwuStatementList(data) {
  return request({
    url: "/smkapi/Statement/caiwuStatementList",
    method: "post",
    data
  });
}
export function findCaiwuStatementInfo(data) {
  return request({
    url: "/smkapi/Statement/findCaiwuStatementInfo",
    method: "post",
    data
  });
}
export function caiwuStatementNewList(data) {
  return request({
    url: "/smkapi/Statement/caiwuStatementNewList",
    method: "post",
    data
  });
}
export function saveCaiWuStatus(data) {
  return request({
    url: "/smkapi/statement/saveCaiWuStatus",
    method: "post",
    data
  });
}
export function selectBankAccountList(data) {
  return request({
    url: "/smkapi/payment/selectBankAccountList",
    method: "post",
    data
  });
}
export function createPayBill(data) {
  return request({
    url: "/smkapi/statement/createPayBill",
    method: "post",
    data
  });
}
export function cancelPayBill(data) {
  return request({
    url: "/smkapi/statement/cancelPayBill",
    method: "post",
    data
  });
}
export function createPayBillnew(data) {
  return request({
    url: "/smkapi/statement/createPayBillnew",
    method: "post",
    data
  });
}
export function supplierBackCongirm(data) {
  return request({
    url: "/smkapi/statement/supplierBackCongirm",
    method: "post",
    data
  });
}
export function findOptInfo(data) {
  return request({
    url: "/smkapi/statement/findOptInfo",
    method: "post",
    data
  });
}
export function saveStatementStatus(data) {
  return request({
    url: "/smkapi/Statement/saveStatementStatus",
    method: "post",
    data
  });
}
export function findPtOptInfo(data) {
  return request({
    url: "/smkapi/Statement/findPtOptInfo",
    method: "post",
    data
  });
}

export function addBackState(data) {
  return request({
    url: "/smkapi/statement/addBackStatement",
    method: "post",
    data
  });
}
//商超负结算单查询
export function selectMinusStatementList(data) {
  return request({
    url: "/smkapi/statement/selectMinusStatementList",
    method: "post",
    data
  });
}

//商超结算单处理结算列表
export function selectStatementOptList(data) {
  return request({
    url: "/smkapi/statement/selectStatementOptList",
    method: "post",
    data
  });
}

//商超批量操作结算单结算与不结算
export function batchStatementStatus(data) {
  return request({
    url: "/smkapi/statement/batchStatementStatus",
    method: "post",
    data
  });
}
//批量操作从线上结算
export function smkonlineConfirmStatement(data) {
  return request({
    url: "/smkapi/statement/onlineConfirmStatement",
    method: "post",
    data
  });
}

//线上结算详情
export function smkgetStatementPayDetail(data) {
  return request({
    url: "/smkapi/statement/getStatementPayDetail",
    method: "post",
    data
  });
}
//线上结算回退
export function smkgetresetPay(data) {
  return request({
    url: "/smkapi/statement/changeOffLinePay",
    method: "post",
    data
  });
}
//线上结算重新支付
export function getsmkresetOnlinePay(data) {
  return request({
    url: "/smkapi/statement/resetOnlinePay",
    method: "post",
    data
  });
}
//付款账户
export function smkselectBankAccountList(data) {
  return request({
    url: "/smkapi/payment/selectBankAccountList",
    method: "post",
    data
  });
}
//付款账户
export function smkcaiwuStatementbank(data) {
  return request({
    url: "/smkapi/Statement/caiwuStatementbank",
    method: "post",
    data
  });
}
//创建付款单是否超过50万
export function PayBillAmount(data) {
  return request({
    url: "/smkapi/statement/PayBillAmount",
    method: "post",
    data
  });
}
//树状分类
export function goodsClassTree(data) {
  return request({
    url: "/smkapi/category/selectErpCategoryTree",
    method: "post",
    data
  });
}
//查询支付
export function smkCheckOnlinePay(data) {
  return request({
    url: "/smkapi/statement/checkOnlinePay",
    method: "post",
    data
  });
}
export function resetSmkOnlinePayS(data) {
  return request({
    url: "/smkapi/statement/resetOnlinePayS",
    method: "post",
    data
  });
}
export function smkApplyResetOnlinePayBySuccess(data) {
  return request({
    url: "/smkapi/statement/applyResetOnlinePayBySuccess",
    method: "post",
    data
  });
}
export function applyResetOnlinePayBySuccessList(data) {
  return request({
    url: "/smkapi/statement/applyResetOnlinePayBySuccessList",
    method: "post",
    data
  });
}
export function checkApplyResetOnlinePayBySuccess(data) {
  return request({
    url: "/smkapi/statement/checkApplyResetOnlinePayBySuccess",
    method: "post",
    data
  });
}